package com.elong.businesstravel.protocol;

import com.elong.businesstravel.include.Version;

/**
 * 协议类，网络请求方面的
 * 
 * @author lenovo
 * 
 */
public class ProtocolDef {
	/** 网络列表，每页20条 */
	public static final int PAGE_SIZE = 20;

	/** 猜酒店活动按钮 */
	public static final String HELP_GUESS_HOTEL_URL = "http://www.lohoo.cn/go/index";
	/** webView点击用户返回 */
	public static final String HELP_FEED_BACK_URL = "http://www.lohoo.cn/go/feedback";
	/** 在帮助中下载app，跳转的连接 */
	public static final String HELP_DOWNLOAD_APP = "http://www.lohoo.cn/dl/";

	/** 分享链接 */
	public static final String SHARE_URL = "http://www.lohoo.cn/mobile.html?laiyuan="
			+ Version.versionName;

	/** 关于界面 */
	public static final String ABOUT_URL = "file:///android_asset/html/aboutus.html";

	/** 正式环境前缀 */
//	public static final String PREFIX = "apps";
	/** 测试环境前缀 */
	 public static final String PREFIX = "dev";

	/** 帮助界面 */
	public static final String HELP_URL = "http://" + PREFIX
			+ ".lohoo.cn/hotel/help.html";

	/** 测试环境域 */
	public static final String DOMAIN = "http://" + PREFIX
			+ ".lohoo.cn/android.html";

	public static final String ACTION_Getversion = "getversion"; // 版本号
	public static final String ACTION_Getcollection = "getcollection"; // 收藏酒店
	public static final String ACTION_Updatecollectionsequence = "updatecollectionsequence"; // 更新收藏
	public static final String ACTION_Deletecollection = "deletecollection"; // 删除收藏
	public static final String ACTION_Membergetnotice = "membergetnotice"; // 消息中心
	public static final String ACTION_Getequipment = "getequipment"; // 推送

	public static final String ACTION_GetCity = "getcitybylatlng"; // 定位城市
	public static final String ACTION_GetCityPoi = "getpoibycity"; // 城市poi
	public static final String ACTION_GetAllCityPoi = "getallcitypoi"; // 获取所有城市的poi
	public static final String ACTION_GetCityList = "getcitylist"; // 城市列表
	public static final String ACTION_GetCityChain = "getcitychain"; // 城市连锁酒店

	public static final String ACTION_GetHotelList = "gethotellist"; // 列表
	public static final String ACTION_GetHotelSearch = "allinonesearch"; // 列表搜索

	public static final String ACTION_GetHotelInfo = "gethotelinfo"; // 详情
	// public static final String ACTION_GetHotelPrice ="gethotelprice"; // 报价列表
	public static final String ACTION_GetHotelPrice = "getdtailelong"; // 艺龙报价列表
	public static final String ACTION_GetHotelComment = "gethotelreviews"; // 评论列表
	public static final String ACTION_GetHotelImages = "gethotelimages"; // 酒店图片
	public static final String ACTION_Addcollection = "addcollection"; // 添加收藏
	public static final String ACTION_Guesshotel = "guesshotel"; // 活动猜酒店

	// 登录
	public static final String ACTION_Mloginout = "mloginout"; // 退出登录
	public static final String ACTION_Membergetcode = "membergetcode"; // 验证码
	public static final String ACTION_Memberchecklogin = "memberchecklogin"; // 会员注册
	public static final String ACTION_Memberrecommend = "memberrecommend"; // 推荐人
	public static final String ACTION_Memberunionlogin = "memberunionlogin"; // 联合登录会员注册
	public static final String ACTION_Memberunioncreate = "memberunioncreate"; // 联合登录会员绑定手机
	public static final String ACTION_Memberaddemail = "memberaddemail"; // 企业邮箱验证码
	public static final String ACTION_Membervalidateemail = "membervalidateemail"; // 企业邮箱验证
	public static final String ACTION_Memberaddcltcard = "memberaddcltcard"; // 名片验证
	public static final String ACTION_Membergetcallback = "membergetcallback"; // 会员反馈信息
	public static final String ACTION_Memberaddcallback = "memberaddcallback"; // 记录会员反馈信息
	public static final String ACTION_Membergetbonus = "membergetbonus"; // 账户明细
	public static final String ACTION_Membergetmanaged = "membergetmanaged"; // 会员等级及账户余额
	public static final String ACTION_Membergetusebonus = "membergetusebonus"; // 消费明细
	public static final String ACTION_Membergetusecoupons = "membergetusecoupons"; // 我的红包

	// 微信
	public static final String ACTION_WeiXinLogin = "weixinlogin"; // 微信登录

	// 下单
	public static final String ACTION_Createorder = "createorder"; // 订单
	public static final String ACTION_Cancleorder = "cancleorder"; // 取消订单
	public static final String ACTION_Getmemberorder = "getmemberorder"; // 订单列表
	public static final String ACTION_Getbanklist = "getbanklist"; // 银行列表

	// 网络错误
	public static final String ACTION_Getaccesserrlog = "getaccesserrlog"; // 网络错误日志

	/**
	 * uid,orderid,length,hotelid ,redata 上传语音评论
	 */
	public static final String ACTION_Addcltreview = "addcltreview";// 上传语音评论

	/**
	 * 参数格式： "names":"王丽,test","isgangao":"false" 作用：下单时验证入住人姓名合法性
	 */
	public static final String ACTION_Checkguest = "checkguest";

	// 火车票
	/**
	 * 火车站列表
	 * $aRule['/train/mytrain/getstationlist'] = array(
	 * 'version' => array ('type' => 'float'),
     * 'deviceid' => array ('type' => 'string','mast' => 'N'),
     * 'token' => array ('type' => 'string','mast' => 'N'),
     * 'uuid' => array ('type' => 'string','mast' => 'N')
     * );
	 * 
	 */
	public static final String ACTION_Getstationlist = "getstationlist";
	/**
	 * 火车票列表
	 * //station to station 线上购票，需要限制在20天内
     * $aRule['/train/mytrain/startendinfos'] = array(
     * 'version' => array ('type' => 'float'),
     * 'startStation' => array ('type' => 'string'),
     * 'endStation' => array ('type' => 'string'),
     * 'startDate' => array ('type' => 'date'),
     * 'trainType' => array ('type' => 'string'),
     * 'hasYp' => array ('type' => 'enum', 'options' =>array("0","1")),
     * 'deviceid' => array ('type' => 'string','mast' => 'N'),
     * 'token' => array ('type' => 'string','mast' => 'N'),
     * 'uuid' => array ('type' => 'string','mast' => 'N')
     * );
	 */
	public static final String ACTION_Startendinfos = "startendinfos";
}
